@import './../../../index.scss';
@import './../../../assets/css/CommonStyle.scss';
#FormUploadImg {
  .upload {
    background: #f0f2f5;
    cursor: pointer;
    text-align: center;
    color: #429cff;
  }
  .upload .tips {
    font-size: 12px;
    color: #999;
    line-height: 15px;
    margin-bottom: 0;
  }
  .upload .pc_icon_add {
    font-size: 23px;
    margin-top: 30px;
    margin-bottom: 10px;
  }
  .upload #file {
    position: absolute;
    left: 2000px;
  }
  .uploadArea {
    display: flex;
    flex-wrap: wrap;
  }
  .uploadArea div {
    width: 200px;
    height: 150px;
    position: relative;
    margin: 9px;
    cursor: pointer;
  }
  .uploadArea div img {
    width: 200px;
    height: 150px;
  }
  .tips_hover {
    position: absolute;
    bottom: 0;
    height: 24px;
    line-height: 24px;
    font-size: 12px;
    margin: 0;
    background: rgba(0, 0, 0, 1);
    opacity: 0.5;
    color: #fff;
    width: 100%;
    text-align: center;
  }
  .icon_close {
    position: absolute;
    right: 5px;
    top: 5px;
    font-size: 20px;
  }
  .explan {
    font-size: 13px;
    font-family: PingFangSC-Regular, PingFangSC;
    font-weight: 400;
    color: rgba(51, 51, 51, 0.5);
    margin-top: 8px;
  }

  .form_box {
    margin-top: 24px;
    width: 100%;
    align-items: center;
    position: relative;
  }

  .tit_box {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-family: PingFangSC-Medium, PingFangSC;
    font-weight: 500;
    color: rgba(51, 51, 51, 0.7);
    margin-right: p-w(8);
  }

  .errMsg {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: $err-color;
    font-size: 14px;
  }

  .cl {
    color: $err-color !important;
  }

  .form_input {
    width: p-w(200);
  }
}
.FormUploadImg_prev {
  position: absolute;
  top: 50%;
  left: 100px;
}
.FormUploadImg_next {
  position: absolute;
  top: 50%;
  right: 100px;
}
.previewModal {
  width: p-w(1170) !important;
}
.previewModal .ant-modal-body {
  width: p-w(1170) !important;
  height: p-w(840);
  padding: p-w(120) p-w(185);
}
.slick-list img {
  height: p-w(600);
}
@media screen and (max-width: $moblie-min-width) {
  #FormUploadImg {
    .tips {
      font-size: m-w(22);
      color: #a4a4a4;
    }
    .uploadArea div,
    .uploadArea div img {
      width: m-w(200);
      height: m-w(150);
      font-size: m-w(22);
    }
    .uploadArea div {
      margin: m-w(15);
    }
    .upload .pc_icon_add {
      margin-top: m-w(40);
      margin-bottom: m-w(10);
    }
    .upload .tips {
      line-height: m-w(15);
    }
    .upload p {
      color: #429cff;
    }
    .icon_close {
      right: m-w(-20);
      top: m-w(-20);
      font-size: 25px;
      width: m-w(48);
      height: m-w(48);
    }
  }
  .FormUploadImg_prev {
    position: absolute;
    top: 50%;
    left: m-w(100);
  }
  .FormUploadImg_next {
    position: absolute;
    top: 50%;
    right: m-w(100);
  }
  .image_swiper {
    margin: m-w(120) m-w(185);
  }
  .previewModal {
    width: calc(100% - 20px) !important;
    height: m-w(530);
    padding: 0;
    top: m-w(300);
    .ant-modal-content,
    .ant-modal-body {
      height: 100%;
      width: 100% !important;
    }
    .ant-modal-content {
      border-radius: 0;
    }
    .ant-modal-body {
      padding: m-w(40) 0;
    }
    .ant-modal-close {
      display: none;
    }
    .imgContainer {
      height: 100%;
    }
    .imgContainer {
      overflow: hidden;
      .closeModal {
        position: absolute;
        right: 0;
        top: m-w(-64);
        width: m-w(48);
        height: m-w(48);
      }
      .scrollArea {
        display: flex;
        flex-wrap: nowrap;
        overflow: scroll;
        height: 100%;
        padding-right: m-w(24);
      }
      .scrollArea > div {
        width: calc(100vw - 75px);
        flex-shrink: 0;
        margin: 0 0 0 m-w(24);
      }
      .scrollArea > div:first-child {
        margin-left: 0;
      }
      .scrollArea img {
        height: 100%;
      }
    }
  }
}
